package com.spa.infrastructure.service.storage.impl.qiniu;

import com.qiniu.util.Auth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QiNiuConfiguration {

    @Autowired
    private QiNiuConfig qiNiuConfig;

    @Bean
    public Auth auth() {
        return Auth.create(qiNiuConfig.getAk(), qiNiuConfig.getSk());
    }

}
